package com.question.annotation;

import org.springframework.web.bind.annotation.Mapping;

import java.lang.annotation.*;

@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Mapping
public @interface GlobalInterceptor {
    //校验参数
    boolean checkParam() default false;

    boolean checkLogin() default  true;
    boolean checkAdmin() default  false;
}
